package com.suzhe.ymall.product.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.suzhe.ymall.product.pojo.Sku;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
public class SpuUpdateParam {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message = "id不能为空")
    @ApiModelProperty(value = "spu id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "是否在售：0 否，1 是")
    private Boolean saleable;

    @ApiModelProperty(value = "商品sku")
    List<Sku> skus;

    @ApiModelProperty(value = "销售属性")
    private List<SpuSaleAttrParam> saleAttr;

    @ApiModelProperty(value = "属性")
    private List<SpuAttrParam> attr;

    @ApiModelProperty(value = "spu展示图片列表")
    private List<String> showImgList;

    @ApiModelProperty(value = "商品描述")
    private String  description;

    @ApiModelProperty(value = "包装清单")
    private String  packingList;

}
